import request from '@/utils/request'

// 查询养护计划列表
export function listPubConservePlan(query) {
  return request({
    url: '/pub/pubConservePlan/list',
    method: 'get',
    params: query
  })
}

// 查询养护计划详细
export function getPubConservePlan(id) {
  return request({
    url: '/pub/pubConservePlan/' + id,
    method: 'get'
  })
}

// 新增养护计划
export function addPubConservePlan(data) {
  return request({
    url: '/pub/pubConservePlan',
    method: 'post',
    data: data
  })
}

// 修改养护计划
export function updatePubConservePlan(data) {
  return request({
    url: '/pub/pubConservePlan',
    method: 'put',
    data: data
  })
}

// 删除养护计划
export function delPubConservePlan(id) {
  return request({
    url: '/pub/pubConservePlan/' + id,
    method: 'delete'
  })
}

// 查询养护分析列表
export function listAnaysisPubConservePlan(query) {
  return request({
    url: '/pub/pubConservePlan/anaysis/list',
    method: 'get',
    params: query
  })
}
